﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using Telerik.Windows.Controls;
using SaleLibrary.License;

namespace Broker.Mgr.SaleView
{
    /// <summary>
    /// Interaction logic for ActiveCodeRegForm.xaml
    /// </summary>
    public partial class ActiveCodeRegForm
    {
        private ActiveCodeReg reg;

        public ActiveCodeRegForm(ActiveCodeReg reg)
        {
            this.reg = reg;
            InitializeComponent();
            Loaded += new RoutedEventHandler(ActiveCodeRegForm_Loaded);
        }

        void ActiveCodeRegForm_Loaded(object sender, RoutedEventArgs e)
        {
            DataContext = reg;
        }

        private void btnExit_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }

    }
}
